import ThirdLayout from "~/layout/ThirdLayout";

export const FLOOD_CALCULUS = "flood-calculus";
export const STABILITY_ANALYSIS = "stability-analysis";
export const EMERGENCY_RESPONSE = "emergency-response";
export const MOISTURE_INVERSION = "moisture-inversion";


//防洪能力演算
export const FLOODCALCULUSBODY = "FloodCalculusBody";
export const FLOODCALCULUSDATA = "FloodCalculusDatass";
export const OTHERFLOODCALCULUS = "OtherFloodCalculus";
//稳定性分析
export const STABILITYANALYSISBODY = "StabilityAnalysisBody";
//水汽反演
export const DISPOSALPROCEDURES = "DisposalProcedures";

const routers = [
    {
        name: FLOOD_CALCULUS,
        path: FLOOD_CALCULUS,
        component: ThirdLayout,
        redirect: { name: FLOODCALCULUSBODY },
        meta: {
            icon: "icon-chart",
            label: "防洪能力演算",
            hasThird: true,
        },
        children: [{
            path: FLOODCALCULUSBODY,
            name: FLOODCALCULUSBODY,
            component: () =>
                import ('../../../views/sefety-technology/flood-calculus/FloodCalculusBody'),
            meta: {
                label: '调洪演算',
            }
        }, {
            path: FLOODCALCULUSDATA,
            name: FLOODCALCULUSDATA,
            component: () =>
                import ('../../../views/sefety-technology/flood-calculus/FloodCalculusData'),
            meta: {
                label: '调洪演算历史数据',
            }
        }, {
            path: OTHERFLOODCALCULUS,
            name: OTHERFLOODCALCULUS,
            component: () =>
                import ('../../../views/sefety-technology/flood-calculus/OtherFloodCalculus'),
            meta: {
                label: '其它防洪能力演算',
            }
        }, ],
    },
    {
        name: STABILITY_ANALYSIS,
        path: STABILITY_ANALYSIS,
        component: ThirdLayout,
        redirect: { name: STABILITYANALYSISBODY },
        meta: {
            icon: "icon-pie",
            label: "稳定性分析",
            hasThird: true,
        },
        children: [{
            path: STABILITYANALYSISBODY,
            name: STABILITYANALYSISBODY,
            component: () =>
                import ('../../../views/sefety-technology/stability-analysis/StabilityAnalysisBody'),
            meta: {
                label: '稳定性分析',
            }
        }],
    },
    {
        name: EMERGENCY_RESPONSE,
        path: EMERGENCY_RESPONSE,
        component: ThirdLayout,
        redirect: { name: DISPOSALPROCEDURES },
        meta: {
            icon: "icon-whiteboard",
            label: "水汽反演",
            hasThird: true,
        },
        children: [{
            path: DISPOSALPROCEDURES,
            name: DISPOSALPROCEDURES,
            component: () =>
                import ('../../../views/sefety-technology/emergency-response/DisposalProcedures'),
            meta: {
                label: '水汽反演',
            }
        }],
    },
];

export default routers;